#ifndef BE_FRAME_LIMITER_H_INCLUDED
#define BE_FRAME_LIMITER_H_INCLUDED

#include "src/utils/settings.h"
#include "src/utils/timer.h"

class BeFrameLimiter
{
	public:
		BeFrameLimiter();
		~BeFrameLimiter();

		void mark(Timer *t);
		void swap();
// 		bool isRenderTime();

		const unsigned int*	active;
		const unsigned int*	optimal;
	private:
// 		Timer *t;
		unsigned int		stepsize;
		unsigned int		sleeptime;
		float			cps;

		float 			timeSinceLastRender;
		Settings*		settings;
};

#endif
